
<div class="body">

    <p class="top">
        <a href="mailto:10000@anjuke.com">联系IT</a>
        <a href="https://192.168.1.98/iisadmpwd/">修改密码</a>
        <a href="<?=Portal_Urls::profile_url()?>" target="_blank">个人资料</a>
        <a href="<?=Portal_Urls::profile_url()?>" target="_blank"><?=$userinfo['user_name']?></a>
        <a href="<?=Portal_Urls::logout_url()?>">退出</a>
    </p>
<div class="center">

<form action="search" method="get"  style="margin-top:27px;">

<input class="search" name="kw" type="text" > <input type="submit" name="dosubmit" class="search-ico"  value="">

</form>
</div>

<div class="wrap">
<ul id="gongneng">
<li id="cy">
<h2><a  href="/center" class="more" id="qb">更多>></a>常用功能</h2>
<!--<ul>-->
<?php foreach ($projects as $key => $project){ ?>
<a target="_blank" href="<?=Portal_Urls::home_url(array("id" => $key));?>"><?=$project['title']?></a>
<?php
    unset($projects[$key]);
    if (++$i == 6) break;
?>
<?php }?>

<!-- a class="bg_home" target="_blank" href="<?=Portal_Urls::build_active();?>"></a-->
<!-- a class="bg_home2" target="_blank" href="http://point.corp.anjuke.com/lianliankan/"></a-->

<!--</ul>-->
    <li style="position: relative;margin-top: 10px;">
    <h2 style="display:block;">人事管理</h2>

       <a target="_blank" href="<?=Flow_Urls::flow_list()?>">待办事项</a>
        <?php if(!empty($role_list) && array_key_exists(Const_Flow::ROLE_RECRUIT, $role_list)){?>
           <a target="_blank" href="<?=Flow_Urls::add_user()?>">新建员工档案</a>
        <?php }?>
        <?php if(!empty($role_list) && array_key_exists(Const_Flow::ROLE_HR, $role_list)){?>
        <a target="_blank" href="<?=Flow_Urls::to_dimiss()?>">辞退员工</a>
        <?php }?>
        <?php if(($myinfo['p_level'] > 6) || ($myinfo['m_level'] > 3)):?>
        <a target="_blank" href="<?=Flow_Urls::apply_transfer()?>">岗位/薪资异动申请</a>
        <?php endif;?>

        <?php if($is_lumesse_user == 'true'){?>
        <a target="_blank" href="<?=Flow_Urls::flow_apply_recruit()?>">申请招聘员工</a>
        <a target="_blank" href="<?=Portal_Urls::lumesse_url()?>">招聘系统</a>
        <?php }?>

        <?php if($view_department):?>
        <a target="_blank" href="<?=Report_Urls::index_url()?>">员工报表</a>
        <?php endif;?>

        <a target="_blank" href="<?=Flow_Urls::flow_list()?>" id="flow_cnt"></a>


       </li>
</ul>
</div>



</div>
<?php $this->script_block_begin();?>
    <script language="javascript" type="text/javascript">
    $(document).ready(function(){
        $.ajax({
            url:'<?=Flow_Urls::ajax_flow_count()?>',
            dataType:"json",
            success:function(result){
                if (result.errcode) {
                    if(result.data){
                        $("#flow_cnt").html('<em class="tip">'+result.data+'</em>');
                    }
                }
            }
        });
    });
    </script>
<?php $this->script_block_end();?>
